<?php 
session_start();
$device = $_SESSION['my_device'];

switch($device)
{
	case "screen":	$_SESSION['css'] = "css/styles.css"; break;
	case "mobile": 	$_SESSION['css']	= "css/styles-mobile.css"; break;
	default: 	
		{
			// If there's no session set, autodetect by default.
			$_SESSION['css'] = "css/core.css";
			$_SESSION['my_device'] = "autodetect";

		}
		break;
}



?>